<?php
class User_Form_Private extends Zen_Form
{
    public function init ()
    {
		$this->setName('admin_form_settings');
        parent::init();
        
        $tiny = new Zend_Form_Element_Radio('tiny',
        array('required' => TRUE ,
          'label' => 'Визуальный редактор: '  
          ));
        $tiny->setMultiOptions(array('1'=>'Включен','0'=>'Выключен'));
        
        $lang = new Zend_Form_Element_Select('lang',
        array('label' => 'Язык: ', 
          'maxlength' => '300', 
          'class'=>'zend_text',
        ));
        
        if (class_exists('Locale_Model_List')) {
        	$model = new Locale_Model_List();
        	$list = $model->getSelectList();
        }else{
        	$list = array('ru'=>'Русский');
        }
        
		$lang->setMultiOptions($list);
		$lang->setRequired(false);
		$lang->setValue(0);
		
        $sumbit=new Zend_Form_Element_Submit('submit',array('label'=>'Сохранить','class'=>'button ui-corner-all ui-state-default'));
        $this->addElements(array($lang,$tiny,$sumbit));
        
        
    }
}